using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EcsSiteDSTableAdapters;
using System.ComponentModel;
namespace SiteECSWeb
{

    [DataObject]
    public class EmpTitleBLL
    {

            private  EmpTitlesTableAdapter   _EmpTitleTableAdapter = null;

        protected EmpTitlesTableAdapter EmpTitleTableAdapter
            {
                get
                {
                    if (_EmpTitleTableAdapter == null)
                    {
                        _EmpTitleTableAdapter = new EmpTitlesTableAdapter();
                    }
                    return _EmpTitleTableAdapter;
                }
            }

            #region SelectTitle
             // Get All Title Data//
            [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
            public EcsSiteDS.EmpTitlesDataTable GetAllEmpTitle()
            {
                return EmpTitleTableAdapter.GetEmpTitlesRowRankData();
            }

          [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
            public EcsSiteDS.EmpTitlesDataTable GetAllEmpTitleByTitleID(int TitleID)
            {
                return EmpTitleTableAdapter.GetEmpTitlesDataByEmpTitleId(TitleID);
            }

            #endregion
         

        }
    }
